// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
}

#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

// Element Plus 样式调整
.el-main {
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 60px);
}

.el-aside {
  background-color: #001529;
  color: #fff;
}

.el-header {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

// 工具类
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-16 {
  margin-bottom: 16px;
}

// 登录页面样式
.login-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 400px;
  
  .title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
  }
  
  .el-form-item {
    margin-bottom: 20px;
  }
  
  .login-button {
    width: 100%;
    margin-top: 20px;
  }
}

// 布局相关样式
.layout-container {
  height: 100vh;
  
  .sidebar {
    background-color: #001529 !important;
    
    .logo {
      height: 60px;
      line-height: 60px;
      text-align: center;
      background-color: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 18px;
      font-weight: bold;
    }
    
    .el-menu {
      border: none;
      background-color: transparent;
      
      .el-menu-item {
        color: rgba(255, 255, 255, 0.8);
        
        &:hover {
          background-color: rgba(255, 255, 255, 0.1);
          color: #fff;
        }
        
        &.is-active {
          background-color: #1890ff;
          color: #fff;
        }
      }
      
      // 修复子菜单标题样式，与普通菜单项保持一致
      .el-sub-menu {
        .el-sub-menu__title {
          color: rgba(255, 255, 255, 0.8) !important;
          
          &:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #fff !important;
          }
        }
        
        &.is-active .el-sub-menu__title {
          color: #fff !important;
        }
        
        // 子菜单展开时的背景
        &.is-opened .el-sub-menu__title {
          background-color: rgba(255, 255, 255, 0.1);
          color: #fff;
        }
      }
    }
  }
  
  .header {
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  }
  
  .main-content {
    background-color: #f0f2f5;
    padding: 20px;
    
    .page-container {
      background: #fff;
      padding: 24px;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      min-height: calc(100vh - 140px);
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .login-form {
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
  }
  
  .main-content {
    padding: 10px;
    
    .page-container {
      padding: 16px;
    }
  }
} 

// 页面内容样式统一，确保与仪表盘一致
.login-logs-container,
.operation-logs-container {
  // 确保背景透明，使用父容器的白色背景
  background: transparent !important;
  
  // 统一标题样式，与仪表盘保持一致
  h1 {
    color: #303133 !important;
    font-weight: 500 !important;
    font-size: 20px !important;
  }
  
  // 统一卡片样式，确保与仪表盘card样式一致  
  .el-card {
    background: #fff !important;
    border: 1px solid #ebeef5 !important;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
    
    .el-card__header {
      background: #fff !important;
      border-bottom: 1px solid #ebeef5 !important;
    }
    
    .el-card__body {
      background: #fff !important;
    }
  }
  
  // 统一表格样式，确保背景纯白
  .el-table {
    background: #fff !important;
    
    .el-table__header {
      background: #fafafa !important;
    }
    
    .el-table__body {
      background: #fff !important;
    }
    
    .el-table__row {
      background: #fff !important;
      
      &:hover {
        background: #f5f7fa !important;
      }
    }
    
    .el-table__row--striped {
      background: #fafafa !important;
      
      &:hover {
        background: #f5f7fa !important;
      }
    }
  }
} 